<?php
//求两个数的最小公倍数和最小公约数
    class s{
    	public $s1;
    	public $s2;

    public function x(){
        $s1 = $this->s1;
        $s2 = $this->s2;
        if($s1<$s2){
        	$temp = $s1;
        	$s1  = $s2;
        	$s2  = $temp;
        }
        $a = $s1;
        $b = $s2;
        while($b!=0){
        	$T = $a%$b;
        	$a = $b;
        	$b = $T;
        }
        echo $a;
        echo "<br/>";
        echo ($s1*$s2)/$a;
    	}
    }

    $c = new s();
    $c->s1 = 6;
    $c->s2 = 20;

    $c->x();
    ?>